﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace TinyCinema.UI.Pages.Report
{
    /// <summary>
    /// Interaction logic for SelectReport.xaml
    /// </summary>
    public partial class SelectReport : Page
    {
        public SelectReport()
        {
            InitializeComponent();
        }
        public static TicketReport.Report1 pagTicketReport1 = new TicketReport.Report1();
        public static TicketReport.Report2 pagTicketReport2 = new TicketReport.Report2();
        public static ScheduleReport.Report1 pagScheduleReport1 = new ScheduleReport.Report1();
        public static PromotionReport.Report1 pagPromotionReport1 = new PromotionReport.Report1();
        public static MenuReport.Report1 pagMenuReport1 = new MenuReport.Report1();
        public static MenuReport.Report2 pagMenuReport2 = new MenuReport.Report2();
        public static CinemaReport.Report1 pagCinemaReport1 = new CinemaReport.Report1();
        public static CinemaReport.Report2 pagCinemaReport2 = new CinemaReport.Report2();
        public static CustomerReport.Report1 pagCustomerReport1 = new CustomerReport.Report1();
        public static CustomerReport.Report2 pagCustomerReport2 = new CustomerReport.Report2();
        public static EmployeeReport.Report1 pagEmployeeReport1 = new EmployeeReport.Report1();
        private void ViewReport(object sender, RoutedEventArgs e)
        {
            switch (((Button)sender).Name)
            {
                case "TicketReport1": Main.pagReport.pagContentFrameSource = pagTicketReport1;
                    break;
                case "TicketReport2": Main.pagReport.pagContentFrameSource = pagTicketReport2;
                    break;
                case "ScheduleReport1": Main.pagReport.pagContentFrameSource = pagScheduleReport1;
                    break;
                case "PromotionReport1": Main.pagReport.pagContentFrameSource = pagPromotionReport1;
                    break;
                case "CustomerReport1": Main.pagReport.pagContentFrameSource = pagCustomerReport1;
                    break;
                case "CustomerReport2": Main.pagReport.pagContentFrameSource = pagCustomerReport2;
                    break;
                case "MenuReport1": Main.pagReport.pagContentFrameSource = pagMenuReport1;
                    break;
                case "MenuReport2": Main.pagReport.pagContentFrameSource = pagMenuReport2;
                    break;
                case "CinemaReport1": Main.pagReport.pagContentFrameSource = pagCinemaReport1;
                    break;
                case "CinemaReport2": Main.pagReport.pagContentFrameSource = pagCinemaReport2;
                    break;
                case "EmployeeReport1": Main.pagReport.pagContentFrameSource = pagEmployeeReport1;
                    break;
            }
        }
    }
}
